/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapp1;
//import java.util.Scanner;
import javax.swing.JOptionPane;

public class JavaApp1 {

    public static void main(String[] args) {
        //Scanner user_input = new Scanner(System.in);
        
        int first_number;
        first_number = 10;
        String first_name = "William";
        String last_name = "Shakespare";
        //String input;
        //System.out.println("Insert your string here:");
        //input = user_input.next();
        String input_box1, input_box2;
        input_box1 = JOptionPane.showInputDialog("Enter text 1");
        input_box2 = JOptionPane.showInputDialog("Enter text 2");
        
        String combination;
        combination = input_box1 + input_box2;
        JOptionPane.showMessageDialog(null, "Combination is " + combination);
        /*
        JOptionPane.showInputDialog("First name", "Enter Your First name");
        JOptionPane.showInputDialog("Family", "Enter Your family name");
        JOptionPane.showInputDialog(null, combination, "Name", JOptionPane.ERROR_MESSAGE);
        */
        String number1, number2;
        number1 = JOptionPane.showInputDialog("Enter number 1");
        number2 = JOptionPane.showInputDialog("Enter number 2");

        int result = Integer.parseInt(number1)*Integer.parseInt(number2);
        System.out.println("Result is: " + result);
        Integer.toString(result);
        JOptionPane.showMessageDialog(null, "Result is " + result);
        System.out.println("My first app");
        //System.out.println("Your insert string is: " + input);
        System.out.println("First number: " + first_number);
        System.out.println(first_name + " " + last_name);
        
        System.exit(0);
    }
    
}
